{"version":3,"file":"html-editor.map.js","names":["window","__BXHtmlEditorParserRules","BXEditor","config","this","InitUtil","dom","bxTags","EMPTY_IMAGE_SRC","HTML5_TAGS","BLOCK_TAGS","NESTED_BLOCK_TAGS","TABLE_TAGS","BBCODE_TAGS","HTML_ENTITIES","BX","browser","IsIE","concat","SHORTCUTS","KEY_CODES","backspace","enter","escape","space","delete","left","right","up","down","z","y","shift","ctrl","alt","cmd","cmdRight","pageUp","pageDown","INVISIBLE_SPACE","INVISIBLE_CURSOR","NORMAL_WIDTH","MIN_WIDTH","MIN_HEIGHT","MAX_HANDLED_FORMAT_LENGTH","MAX_HANDLED_FORMAT_TIME","iframeCssText","InitConfig","CheckConfig","lazyLoad","Init","prototype","inited","parser","BXHtmlEditor","BXEditorParser","On","BuildSceleton","HTMLStyler","textarea","textareaCont","appendChild","create","props","className","pValueInput","id","cont","type","name","inputName","value","content","form","document","sandbox","CreateIframeSandBox","iframe","GetIframe","style","width","height","opacity","iframeCont","textareaView","BXEditorTextareaView","iframeView","BXEditorIframeView","synchro","BXEditorViewsSynchro","bbCode","bbParser","BXEditorBbCodeParser","phpParser","BXEditorPhpParser","components","BXEditorComponents","styles","BXStyles","overlay","Overlay","BuildToolbar","showTaskbars","taskbarManager","TaskbarManager","showComponents","componentsTaskbar","ComponentsControl","AddTaskbar","showSnippets","snippets","BXEditorSnippets","snippetsTaskbar","SnippetsControl","ShowTaskbar","GetId","taskbarCont","display","contextMenu","ContextMenu","showNodeNavi","nodeNavi","NodeNavigator","Show","pasteControl","PasteControl","InitEventHandlers","ResizeSceleton","taskbarShown","CheckBrowserCompatibility","parentNode","insertBefore","text","message","InitImageUploader","onCustomEvent","dialogs","splitVertical","splitRatio","parseFloat","view","taskbarWidth","parseInt","setFocusAfterShow","cssCounter","iframeCss","fileDialogsLoaded","useFileDialogs","bbCodeTags","minBodyWidth","minBodyHeight","normalBodyWidth","normalWidth","smiles","smilesIndex","sortedSmiles","i","smile","j","arCodes","length","code","push","split","path","sort","a","b","allowPhp","lpa","limitPhpAccess","templateId","componentFilter","templates","templateParams","_this","bind","proxy","OnClick","OnMousedown","adminMenu","addCustomEvent","bookmark","statusInterval","clearInterval","setInterval","CheckCurrentStatus","stopBugusScroll","bxTag","origTag","target","e","tag","GetDialog","OnSubmit","initAutosave","setTimeout","BXAUTOSAVE","InitAutosaveHandlers","entity","lastChars","GetLastSpecialchars","exInd","util","array_search","deleteFromArray","unshift","pop","lastSpecialchars","SaveOption","join","parentDialog","WindowManager","Get","DIV","isNodeInDom","findParent","n","autoResize","AutoResizeSceleton","CheckBodyHeight","result","toolbarCont","toolbar","areaCont","resizerOverlay","splitResizer","StartSplitResize","navCont","fileDialogsWrap","params","expanded","innerSize","GetWindowInnerSize","innerWidth","innerHeight","minWidth","minHeight","styleW","styleH","resizeTimeout","clearTimeout","toString","indexOf","offsetWidth","offsetHeight","w","Math","max","h","toolbarHeight","GetHeight","GetWidth","areaH","areaW","top","SetAreaContSize","Resize","AdaptControls","IsShown","padding","doc","GetIframeDoc","body","GetSceletonSize","IsEmpty","maxHeight","autoResizeMaxHeight","autoResizeMinHeight","areaHeight","newHeight","autoResizeTimeout","GetHeightByContent","IsIOS","Infinity","round","min","SmoothResizeSceleton","heightOffset","autoResizeOffset","contentHeight","GetViewMode","node","lastChild","offsetTop","previousSibling","oEdSize","GetWindowSize","scrollHeight","element","size","curHeight","count","bRise","timeInt","dy","smoothResizeInt","finished","areaContTop","WIDTH_DIF","currentViewName","getValue","MIN_SPLITTER_PAD","delta","deltaX","deltaY","updateSplitRatio","Toolbar","GetTopControls","Controls","Sandbox","OnCreateIframe","editor","contains","selection","BXEditorSelection","action","BXEditorActions","SetContent","undoManager","BXEditorUndoManager","Exec","InitAutoLinking","changeViewBut","switchCodeButton","controls","GetControlsMap","SetView","Focus","dialogName","Hide","saveValue","bParse","htmlFromBbCode","Parse","SetValue","setToEnd","GetSplitMode","SaveContent","lastIframeValue","FromIframeToTextarea","SaveValue","GetContent","GetValue","IsExpanded","Expand","bExpand","startWidth","startHeight","startTop","startLeft","endWidth","endHeight","endTop","endLeft","scrollPos","GetWindowScrollPos","pos","getBoundingClientRect","savedSize","scrollLeft","scrollTop","configWidth","configHeight","savedStyle","position","zIndex","dummieDiv","savedParentOpacity","savedParentPosition","parent","getComputedStyle","getPropertyValue","includes","willChange","setProperty","CheckEscCollapse","PreventScroll","removeCustomEvent","unbind","expandAnimation","easing","duration","start","finish","transition","makeEaseOut","transitions","quart","step","state","complete","parentOpacity","parentPosition","remove","CheckAndReInit","animate","keyCode","command","selectedNode","IsPopupsOpened","PreventDefault","scrollTo","dialogShown","popupShown","contextMenuShown","bShown","ReInitIframe","callback","InitIframe","StopSync","lastTextareaValue","FromTextareaToIframe","StartSync","ReInit","lastCheckedRange","win","GetWindow","GetDocument","head","innerHTML","undefined","Error","Disable","Enable","GetInnerHtml","el","TILDA","AMP","replace","s","documentElement","SetTextContent","textContent","GetTextContent","innerText","nodeValue","AutoCloseTagSupported","createElement","toLowerCase","FirstLetterSupported","IsChrome","IsSafari","CheckGetAttributeTruth","td","getAttribute","CheckHTML5Support","html","CheckHTML5FullSupport","tags","GetHTML5Tags","GetEmptyImage","CheckDataTransferSupport","Clipboard","DataTransfer","getData","CheckImageSelectSupport","CheckPreCursorSupport","IsIE10","IsIE11","Refresh","cn","addClass","removeClass","IsFirefox","ownerDocument","italics","getElementsByTagName","italicLen","setAttribute","execCommand","italicsNew","removeAttribute","ReplaceWithOwnChildren","addslashes","str","stripslashes","ReplaceNode","newNode","removeChild","spaceUrlEncode","spaceUrlDecode","DocumentHasTag","LIVE_CACHE","key","cacheEntry","IsSplitPoint","offset","res","childNodes","rangy","isCharacterDataNode","nextSibling","SplitNodeAt","descendantNode","descendantOffset","getNodeIndex","splitDataNode","cloneNode","child","insertAfter","nodeName","firstChild","IsBlockElement","styleDisplay","isString","IsBlockNode","nodeType","in_array","GetBlockTags","CopyAttributes","attributes","from","to","attribute","RenameNode","newNodeName","cssText","replaceChild","GetInvisibleTextNode","createTextNode","IsEmptyNode","bCheckNewLine","bCheckSpaces","data","match","GetTextContentEx","linkMap","clone","scripts","links","href","num","RgbToHex","search","hex","x","slice","s1","s2","s3","s4","CheckCss","arCss","bMatch","hasOwnProperty","SetCss","InsertAfter","precedingNode","GetNodeDomOffset","CheckSurrogateNode","CheckParentSurrogate","CheckSurrogateDd","GetPreviousNotEmptySibling","prev","GetNextNotEmptySibling","next","IsEmptyLi","li","FindParentEx","obj","maxParent","checkNode","IsEmptyObject","GetNextSibling","bParseBxNodes","bFormat","GetParseRules","FormatHtml","ParseBxNodes","ParsePhp","eventName","arEventParams","rules","SetBxTag","random","GetBxTag","srcElement","bxType","CheckCommand","IsSupported","SetSplitMode","vertical","dX","dY","windowScroll","startX","clientX","startY","clientY","moveResizer","bFinish","finishResizing","Request","P","url","actionUrl","bIter","postData","GetReqData","reqId","iter","handler","handleRes","GetRequestRes","ClearRequestRes","ajax","post","get","BXHtmlEditorAjaxResponse","O","sessid","bitrix_sessid","bx_html_editor_request","GetTemplateId","GetSiteId","siteId","GetComponentFilter","GetTemplateParams","GetTemplateStyles","STYLES","ApplyTemplate","templ","cleanNode","rel","site_template","bForceFormating","formatter","BXCodeFormatter","time1","Date","getTime","Format","time2","GetFontFamilyList","fontFamilyList","status","arAction","actionState","actionList","GetActiveActions","control","IsFocused","range","GetRange","isValid","CheckState","RegisterCheckableAction","checkedActionList","userOptions","save","settingsKey","GetCurrentCssClasses","filterTag","GetCSS","PATH","GetStylesDescription","STYLES_TITLE","IsInited","IsContentChanged","cont1","cont2","IsSubmited","isSubmited","RemoveCursorNode","AllowBeforeUnloadHandler","beforeUnloadHandlerAllowed","DenyBeforeUnloadHandler","Destroy","Check","IsVisible","def","GetIframeElement","getElementById","RegisterDialog","dialog","SetConfigHeight","IsOpera","IsIE8","IsIE7","IsIE6","querySelectorAll","GetCursorHtml","SetCursorNode","InsertHTML","RestoreCursor","cursor","SetAfter","IsFocusedOnTextarea","AddButton","compact","toolbarSort","hidden","but","wrap","superclass","constructor","apply","arguments","title","iconClassName","disabledForTextarea","Create","src","pCont","background","GetCont","extend","Button","controlsMap","checkWidth","AddCustomParser","AddParser","specialParsers","InsertHtml","SetSelection","lastRange","collapsed","startContainer","endContainer","surNode","ScrollIntoView","ParseContentFromBbCode","LoadFileDialogs","editor_id","trim","ob","uploadImagesFromClipboard","uploadUrl","imageUploader","Uploader","getInstance","CID","streams","allowUpload","uploadFileUrl","uploadMethod","showImage","sortItems","input","placeHolder","uploadFormData","imageBase64","blob","UploaderUtils","dataURLToBlob","GetDefaultImageName","substr","uniqId","editorBase64Src","onChange","item","HandleImageDataUriCaughtUploadedCallback","file","uploadedPath","imageName","InitClipboardHandler","base64Images","checkImages","images","pasteCheckItteration","CheckImage","chromeVerion","imageHandled","clipboard","clipboardData","ua","navigator","userAgent","items","getAsFile","reader","FileReader","readAsDataURL","onload","event","img","Image","InsertNode","HandleImageDataUri","GetBase64Image","base64source","source","RegisterBase64Image","index","image","naturalHeight","GetImageBase64","canvas","getContext","drawImage","toDataURL","skipPasteControl","isOpened","base64Image","fileSrc","htmlForInsert","imageReferer","replacement","callBack","DoNothing","CreateIframe","bSandbox","windowProperties","windowProperties2","documentProperties","_readyError","frameborder","allowtransparency","marginwidth","marginheight","onreadystatechange","OnLoadIframe","test","readyState","iframeWindow","contentWindow","iframeDocument","onerror","errorMessage","fileName","lineNumber","_unset","loaded","iframeHtml","GetHtml","stylesheets","open","write","close","triggerCallback","css","bodyParams","bodyClass","bodyId","headHtml","Type","isStringFilled","designTokens","cssIframePath","fontSize","object","property","setter","__defineGetter__","__defineSetter__","crashesWhenDefineProperty","set","Object","defineProperty","init","GetBookmark","cloneRange","SetBookmark","SaveBookmark","GetLastRange","RestoreBookmark","SetBefore","createRange","setStartBefore","setEndBefore","setStartAfter","setEndAfter","SelectNode","isElement","canHaveHTML","isEmpty","bBlock","toUpperCase","tagName","firstRow","rows","lastRow","cells","selectNodeContents","selectNode","collapse","GetSelectedNode","controlRange","GetSelection","focusNode","anchorNode","commonparentContainer","ExecuteAndRestore","method","restoreScrollPosition","oldScrollTop","oldScrollLeft","placeholderHTML","newRange","createContextualFragment","insertNode","e3","querySelector","caretPlaceholder","deleteContents","focus","e4","ExecuteAndRestoreSimple","firstNode","lastNode","textNodes","rangeBackup","getNodes","startOffset","endOffset","setStart","e1","setEnd","e2","rng","createRangyRange","RemoveNode","cursorNode","Surround","surroundContents","extractContents","bScrollBars","tempNode","__scrollIntoViewElement","offsetParent","SelectLine","bSelectionModify","getSelection","defaultView","modify","rangeTop","boundingTop","rangeHeight","boundingHeight","scrollWidth","rangeBottom","rangeEnd","measureNode","moveToPoint","setEndPoint","select","GetText","GetNodes","filter","bSetFocus","originalScrollTop","originalScrollLeft","newScrollTop","newScrollLeft","rangeCount","getRangeAt","commonAncestorContainer","parentWindow","setSingleRange","GetStructuralTags","structuralTags","tblRe","LI","DT","DD","TD","TR","TH","TBODY","TFOOT","THEAD","CAPTION","COL","COLGROUP","structuralTagsMatchRe","SetCursorBeforeNode","_GetNonTextLastChild","_GetNonTextFirstChild","_MoveCursorBeforeNode","possibleParentRe","parNode","isFirstNode","BODY","SetInvisibleTextBeforeNode","_MoveCursorAfterNode","isLastNode","SetInvisibleTextAfterNode","SaveRange","CheckLastRange","setCursorBefore","invis_text","GetCommonAncestorForRange","getCommonAncestor","NodeMerge","isElementMerge","firstTextNode","DoMerge","len","textBits","textNode","hasChildNodes","GetLength","tagNames","arStyle","cssClass","normalize","defaultTagName","similarClassRegExp","applyToAnyTagName","GetStyledParent","bMatchCss","cssClassMatch","cssStyleMatch","CheckCssStyle","CheckCssClass","SimplifyNodesWithCss","hasClass","PostApply","merges","currentMerge","rangeStartNode","rangeEndNode","rangeStartOffset","rangeEndOffset","precedingTextNode","GetAdjacentMergeableTextNode","nextTextNode","NormalizeNewNode","childs","GetNonEmptyChilds","forward","isTextNode","adjacentNode","propName","AreElementsMergeable","el1","el2","arrayContains","CompareNodeAttributes","attr1","attr2","getNamedItem","specified","CreateContainer","ApplyToTextNode","IsRemovable","IsAvailableTextNodeParent","UndoToTextNode","styledParent","containsNode","parentRange","isParentForNode","isPointInRange","ApplyToRange","splitBoundaries","inv","UndoToRange","sorted","nesting","GetNodeNesting","GetTextSelectedByRange","textRange","intersectionRange","intersection","detach","IsAppliedToRange","parents","selectedText","ToggleRange","history","historyLength","delegate","Transact","isContentAction","Keydown","ctrlKey","metaKey","altKey","isUndo","shiftKey","isRedo","Undo","Redo","lastKey","previousHtml","currentHtml","CheckControls","Set","arStyles","sStyles","cssIframe","contentDocument","templatePath","styleNodes","ParseCss","filteredRes","arAllSt","cssTag","arTags","k","t1","t2","l1","l2","l3","styleSheets","x1","stylesDescription","cssRules","STYLE_RULE","selectorText","classTitle","original","classes","clean_empty","strong","em","u","del","rename_tag","strike","h1","h2","h3","h4","h5","h6","span","p","br","div","hr","nobr","section","figure","figcaption","fieldset","legend","menu","ol","ul","pre","table","tr","check_attributes","rowspan","colspan","tbody","tfoot","thead","th","caption","col","colgroup","dl","dd","dt","noindex","font","convert_attributes","face","color","replace_with_children","embed","noembed","param","sup","sub","address","nav","aside","article","main","acronym","abbr","label","time","small","big","details","summary","footer","video","audio","nofollow","area","noframes","bgsound","basefont","track","wbr","noscript","svg","keygen","meta","isindex","base","applet","spacer","frame","device","xml","nextid","link","script","comment","frameset","multicol","map","hgroup","listing","header","rt","xmp","bdi","progress","dfn","rb","mark","output","marquee","rp","var","tt","blink","plaintext","kbd","meter","datalist","samp","bdo","ruby","ins","optgroup","option","button","dir","add_class","align","q","cite","blockquote","center","add_css","textAlign"],"sources":["html-editor.js"],"mappings":"CAKC,SAAUA,GACT,IAAIC,EAEL,SAASC,EAASC,GAGjBC,KAAKC,WACLD,KAAKE,IAAM,CAMX,EAEAF,KAAKG,OAAS,CAAC,EAEfH,KAAKI,gBAAkB,uBACvBJ,KAAKK,WAAa,CACjB,OAAQ,UAAW,QAAS,QAAS,MAAO,SAAU,UAAW,WAAY,UAAW,aACxF,SAAU,SAAU,SA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